﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">

    <xs:simpleType name="ValidationType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="boolean"/>
            <xs:enumeration value="integer"/>
            <xs:enumeration value="numeric"/>
            <xs:enumeration value="text"/>
            <xs:enumeration value="selection"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:element name="OriginalConfigs">

        <xs:complexType>
            <xs:sequence>
                <xs:element maxOccurs="unbounded" name="Config">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="Value" type="xs:string" minOccurs="1" maxOccurs="1" />
                            <xs:element name="Description" type="xs:string" minOccurs="0" maxOccurs="1" />
                            <xs:element name="ValueList" type="xs:string" minOccurs="0" maxOccurs="1"/>                               </xs:sequence>
                        <xs:attribute name="name" type="xs:string" use="required" />
                        <xs:attribute name="type" type="ValidationType" use="optional"/>
                        <xs:attribute name="required" type="xs:boolean" use="optional"/>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>